<?php
class __X_REQUEST__ extends __X_request_data_class {
    public $G = null;
    public $P = null;
    public function __construct() {
        parent::__construct($_REQUEST);
        $this->get_get();
        $this->get_post();
    }
    private function get_get() {
        if(isset($_GET)) {
            $this->G = new __X_request_data_class($_GET);
        }
    }
    private function get_post() {
        if(isset($_POST)) {
            $this->P = new __X_request_data_class($_POST);
        }
    }
}
class __X_request_data_class {
    public $data;
    public function __construct($arr) {
        $this->data = $arr;
    }
    public function __get($name) {
        if(isset($this->data[$name])) {
            return new __X_request_data_value_class($this->data[$name]);
        }
    }
}
class __X_request_data_value_class {
    public $v;
    public $html;
    public $trim;
    public $removal;
    public $sal;
    public function __construct($var) {
        $this->v = $var;
        $this->html = conv_quotation($var);
        $this->trim = trim($var);
        $this->removal = str_replace(array("'",'"'),'',$var);
        $this->sal = get_magic_quotes_gpc() ==0 ? addslashes($var) : $var;
    }
}
